import request from '@/utils/request'

export function deleteOrder(orderSn) {
  return request({
    url: `api/order/reception/order/${orderSn}`,
    method: 'delete'
  })
}

export function getOrderConfirm() {
  return request({
    url: '/api/order/reception/getOrderConfirm',
    method: 'get'
  })
}

export function setSubmitOrder(query) {
  return request({
    url: '/api/order/reception/setSubmitOrder',
    method: 'post',
    data: query
  })
}

export function getOrderTime(orderSn) {
  return request({
    url: `/api/order/reception/getOrderTimeByOrderSn/${orderSn}`,
    method: 'get'
  })
}

export function ZFBPay(orderSn) {
  return request({
    url: `/api/order/reception/ZFBPay/${orderSn}`,
    method: 'get'
  })
}

export function getOrderAll() {
  return request({
    url: `/api/order/reception/getOrder`,
    method: 'get'
  })
}


export function getOrder(status) {
  return request({
    url: `/api/order/reception/getOrder/${status}`,
    method: 'get'
  })
}


